var maxWidth = 750;
var designWidth = 750;
var initHtmlFont = function() {
	var html = document.documentElement;
	var windowWidth = html.clientWidth > maxWidth ? maxWidth : html.clientWidth;
	html.style.fontSize = (windowWidth / designWidth) * 100 + 'px';
};
initHtmlFont();
var t;
window.onresize = function() {
	clearTimeout(t);
	t = setTimeout(initHtmlFont, 250);
}
document.addEventListener('DOMContentLoaded', function() {
	initHtmlFont();
}, false);